<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 
<h:head>
<title>Travel Dream - Inserimento Escursione</title>
<style type="text/css">
			@import url("../travel.css");
			@import url("../user.css");
    	</style>
</h:head>
<h:body>
<ui:include src="headerAdmin.xhtml"/>
<div id='boxUserContainer'>
	Inserisci i dettagli dell'escursione.
	<h:form>
		<h:panelGrid columns="1" id = "regGrid">
			<tr>
				<td class="celleStrette"><h:outputLabel for="nome">Nome:</h:outputLabel></td>
				<td><h:inputText id="nome" value="#{productInsertBean.product.nome}" /></td>
				<td><h:message for="nome"></h:message></td>
			</tr>
			<tr>
				<td class="celleStrette"><h:outputLabel for="prezzo">Prezzo:</h:outputLabel></td>
				<td><h:inputText id="prezzo" value="#{productInsertBean.product.prezzo}" /></td>
				<td><h:message for="prezzo"></h:message></td>
			</tr>
			<tr>
				<td class="celleStrette"><h:outputLabel for="descrizione">Descrizione:</h:outputLabel></td>
				<td><h:inputText id="descrizione" value="#{productInsertBean.product.descrizione}"></h:inputText></td>
				<td><h:message for="descrizione"></h:message></td>
			</tr>
			<tr>
				<td class="celleStrette"><h:outputLabel for="data_arrivo">Data:</h:outputLabel></td>
				<td><h:inputText id="data_arrivo" value="#{productInsertBean.product.data_arrivo}" /></td>
				<td><h:message for="data_arrivo"></h:message></td>
			</tr>
			<tr>
				<td class="celleStrette"><h:outputLabel for="luogo">Luogo:</h:outputLabel></td>
				<td><h:inputText id="luogo" value="#{productInsertBean.product.luogo}" /></td>
				<td><h:message for="luogo"></h:message></td>
			</tr>
		</h:panelGrid>

		<h:commandButton value="Inserisci prodotto" action="#{productInsertBean.registerEscursione()}" />

	</h:form></div>
</h:body>
</html>